package com.jieao.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jieao.content.domain.Article;
import com.jieao.content.dto.ArticleDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleMapper extends BaseMapper<Article> {

    List<ArticleDto> selectArticleList(ArticleDto article);

    List<ArticleDto> selectFrontArticleList(ArticleDto article);

    ArticleDto selectArticleById(@Param("articleId") Long articleId,@Param("userId") Long userId);

    int change(ArticleDto catalog);

    List<ArticleDto> selectArticleTreeList(ArticleDto catalog);

    int deleteArticleById(Long articleId);
}
